package model.Actions;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import DB.Connection.DBConnectionManager;

import commons.Entities.User;

public class addNewUserToDBAction implements Runnable {

	private static final Log logger = LogFactory.getLog(addNewUserToDBAction.class);

	private User user;

	public addNewUserToDBAction(User user) {
		this.user = user;
	}

	@Override
	public void run() {
		logger.info("addNewUserToDBAction starting...");

		DBConnectionManager.get().insertToUserTable(user);

		logger.info("addNewUserToDBAction ended.");
	}
}
